home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Cafe 3
/
Visual Cafe 3.ISO
/
Vcafe
/
Main.bin
/
CharOption.java
< prev
next >
Wrap
Text File
|
1998-09-08
|
917b
|
42 lines
package com.symantec.itools.frameworks.application.commandline;
/**
* @author Symantec Internet Tools Division
* @version 1.0
* @since VCafe 3.0
*/
public abstract class CharOption
extends SingleOption
{
protected CharOption()
{
}
protected CharOption(String[] flags)
{
super(flags);
}
/**
* @param args TODO
* @param startIndex TODO
* @exception com.symantec.itools.frameworks.application.commandline.MissingArgumentsException
* @since VCafe 3.0
*/
protected char getChar(String[] args, int startIndex)
throws MissingArgumentsException
{
try
{
return (args[startIndex + 1].charAt(0));
}
catch(ArrayIndexOutOfBoundsException ex)
{
throw new MissingArgumentsException(args[startIndex]);
}
}
}